package com.alpha.dao.interfaces;

import java.sql.SQLException;
import java.util.ArrayList;

import javax.naming.NamingException;

import com.alpha.bom.Answer;

public interface IAnswerDao {
	
	public Answer retrieveAnswer(int answerId) throws SQLException, NamingException;
	public ArrayList<Answer> retrieveChoices(int questionId) throws SQLException, NamingException;
	public int retrieveNextAnswerId() throws SQLException;
	public boolean insertAnswer(Answer answer) throws SQLException, NamingException;
	public boolean insertAnswer(Answer answer, int questionId) throws SQLException, NamingException;
	public boolean insertQuestionAnswer(int answerId, int questionId) throws SQLException, NamingException;

}
